package com.supplychainapi.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by wangziqi on 2017/10/17.
 */
@Component
@PropertySource("classpath:fastdfs.properties")
@ConfigurationProperties(prefix = "fdfs")
public class FastdfsConfig {
    /**
     * 连接超时时间
     */
    private String connectTimeout;

    /**
     * 读取超时时间
     */
    private String readTimeout;

    /**
     * 文件服务器地址
     */
    private String trackerServer;

    /**
     * 端口
     */
    private String trackerPort;

    /**
     * 图片域名前缀
     */
    private String domain;




    public String getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(String connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public String getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(String readTtimeout) {
        this.readTimeout = readTtimeout;
    }

    public String getTrackerServer() {
        return trackerServer;
    }

    public void setTrackerServer(String trackerServer) {
        this.trackerServer = trackerServer;
    }

    public String getTrackerPort() {
        return trackerPort;
    }

    public void setTrackerPort(String trackerPort) {
        this.trackerPort = trackerPort;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }
}
